#!/usr/bin/python
# -*- coding:UTF-8 -*-
dict = {}
dict['one'] = 'this is one'
dict[2] = "this is two"

tinydict = {'name':'lucy','code':1111,'dept': 'coding'}

print dict['one'] # 输出键为‘one’的值
print dict[2] # 输出键为2的值
print tinydict # 输出完整的字典
print tinydict.keys() # 输出所有键
print tinydict.values() # 输出所有的值

